// #ifndef VUE3
import Vue from 'vue';
import App from './App.vue';
import uView from './uni_modules/vk-uview-ui';

Vue.use(uView); // Vue 2 安装插件
Vue.config.productionTip = false;

const app = new Vue({
	render: h => h(App)
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';
import App from './App.vue';
import uView from './uni_modules/vk-uview-ui';
import * as Pinia from 'pinia';
export function createApp() {
	const app = createSSRApp(App);
	app.use(uView); // Vue 3 安装插件
	app.use(Pinia.createPinia());
	return {
		app,
		Pinia
	};
}
// #endif